<template>
  <div>
    <div>{{ news }}</div>
    <button @click="news += 1">News加1</button>
  </div>
</template>

<script>
export default {
  name: "News",
  data() {
    return {
      news: "News",
    };
  },
  beforeCreate() {
    console.log("beforeCreate", "news");
  },
  created() {
    console.log("created", "news");
  },
  beforeMount() {
    console.log("beforeMount", "news");
  },
  mounted() {
    console.log("mounted", "news");
  },
  beforeUpdate() {
    console.log("beforeUpdate", "news");
  },
  updated() {
    console.log("updated", "news");
  },
  beforeDestroy() {
    console.log("beforeDestroy", "news");
  },
  destroyed() {
    console.log("destroyed", "news");
  },
  activated() {
    console.log("actived", "news");
  },
  deactivated() {
    console.log("deactived", "news");
  },
};
</script>

<style lang="scss" scoped></style>
